package com.hdax.dmw.openfeign.item;

import com.hdax.dmw.base.DmImage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

//value 代表服务提供者的服务名称
//spring.application.name=dmw-service-base
@FeignClient(name = "dmw-service-base")
public interface BaseFeign {

    @RequestMapping(path = "/base/image",method = RequestMethod.POST)
    DmImage image(
            @RequestParam("targetId") Long targetId,
            @RequestParam("type") Integer type,
            @RequestParam("category") Integer category
    );

}
